#{extends 'home.html' /} 
#{set title:'My notification' /}

<div class="Notification" id="notifications-content">
	<p> 
	<font size="5"> My Notification </font> (${notifications.size()})
	</p>
	<hr>
#{table notifications, as: 'notification'}
  #{column ' user'}
  <a  class = "standardLink" href='@{Users.viewUserProfile(notification.notifictionTrigger.userName)}'>
	<span  style = "color:white" class="link">${notification.notifictionTrigger.userName}</span></a> 
  ${notification.description}
  #{if  notification.objectType==0 ||notification.objectType==2 ||notification.objectType==3 ||notification.objectType==4 
	||notification.objectType==6 ||notification.objectType==8 ||notification.objectType==11 ||notification.objectType==13 
	||notification.objectType==15||notification.objectType==18 }	
    <a class = "standardLink" href='@{NotificationController.gotoNotification(notification.objectID,notification.objectType)}'>
	<span style = "color:white" class="link">${notification.getType()}</span></a> 
	#{/if}
	#{else}
	<span>${notification.getType()}</span>
	#{/else}
    ${notification.getPeriod()}
  #{/column}
#{/table}
</div>
